#!/usr/bin/env python
#coding:utf-8

import cgi

form = cgi.FieldStorage()
name = form.getfirst("name", "empty")

name = cgi.escape(name)

print """\
Content-type: text/html\n
<html><body>
<p>The submitted name was "%s"</p>
</body></html>""" % name
